package com.summer_administration.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.sql.Date;
import java.time.LocalDateTime;

@Data
public class Income {
    private Integer id;//主键ID

    @NotNull
    private String title;//收入标题
    @NotNull
    private Integer number;//收入金额

    private String method;//支付方式
    private String picture;//收入账单
    private String date;//收入日期
    private String remark;//备注

    private Integer createUser;//创建人ID
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;//更新时间
}
